package com.sk.cardeal.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sk.cardeal.R;
import com.sk.cardeal.entity.TodayMessage;

import java.util.List;

/**
 * Created by sk on 2018/1/20.
 */

public class TodayAdapter extends BaseQuickAdapter<TodayMessage,BaseViewHolder> {

    public TodayAdapter(int layoutResId, @Nullable List<TodayMessage> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TodayMessage item) {
        helper.setText(R.id.car_num,item.getCarNumber())
                .setText(R.id.work_num,"工位："+item.getPlaceName())
                .setText(R.id.work_pep,"技师："+item.getPersonName());
    }
}
